<!DOCTYPE html>
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--><html lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">

<!-- Viewport Metatag -->
<!-- <meta name="viewport" content="width=device-width,initial-scale=1.0"> -->

<!-- Plugin Stylesheets first to ease overrides -->

<!-- Required Stylesheets -->
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/bootstrap/css/bootstrap.min.css" media="screen">

<script type="text/javascript" src="__PUBLIC__/js/jquery-2.1.4.min.js"></script>


<style type="text/css">


    body{

        width: 1200px;
        /*height: 300px;*/
    }

    #sel{

        width: 174px;
        height: 30px;
        line-height: 30px;
    }




</style>
</head>

<body>
    
    <center>
        <div class="all">
            <div class="container">
            <div class="row">
                <div class="col-md-10">
                        <div class="panel panel-primary">
                          <div class="panel-heading">广告管理</div>
                          <div class="panel-body">
                           
                          </div>
                            <form action="{:U('Admin/Advertise/update',array('id'=>$list["id"]))}" method="post" id="form1" enctype="multipart/form-data">
                                <table class="table">
                       
                            

                            <tr>
                                <td></td>
                                <th>广告名称：</th>
                                <td><input type="text" name="advertisename" value="{$list[advertisename]}"></td>
                            </tr>
                              <tr>
                                <td></td>
                                <th>广告图片：</th>
                                <td>
                                     <img src="__PUBLIC__/{$list.logo}">   
                                     

                                </td>
                               
                            </tr>
                             <tr>
                                <td></td>
                                <th>
                                    连接状态：
                                </th>
                                <td> <input type="radio" name="status" value="1"
                                 <if condition = "$list.status eq 1">
                                        checked
                                    </if>

                                    >显示&nbsp;&nbsp;&nbsp;&nbsp;
                                



                                <input type="radio" name="status" value="0" <if condition="$list.status eq 0 "> 
                                checked
                                </if> 
                                > 禁用</td>
                            </tr>
                            <tr>
                                <input type="file" name="upload" value="__PUBLIC__/{$list.logo}">
                            </tr>
                        <!--        <tr>
                                <td></td>
                                <th>自定义属性名添加：</th>
                                <td><input type="text" name="attr_name"></td>
                            </tr> -->
    

                            <tr>
                            <td></td>
                                 <td><button type="submit" class="btn btn-primary">修改</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!-- <button class="btn btn-danger" id="btn1">重置</button> --></td>
                                <td></td>
                            </tr>
                          </table>
                            </form> 
                          </div>
                </div>
            </div>
        </div>
    </div>  
    </center>

        

</body>
</html>
<script>
    $('#btn1').click(){

        $('#form1')[0].reset();
    }
</script>
